package org.jeecg.modules.data.service.impl;

import org.jeecg.modules.data.entity.TDataReport;
import org.jeecg.modules.data.entity.TInvestigationRelease;
import org.jeecg.modules.data.mapper.TDataReportMapper;
import org.jeecg.modules.data.mapper.TInvestigationReleaseMapper;
import org.jeecg.modules.data.service.ITInvestigationReleaseService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: t_investigation_release
 * @Author: jeecg-boot
 * @Date:   2025-05-20
 * @Version: V1.0
 */
@Service
public class TInvestigationReleaseServiceImpl extends ServiceImpl<TInvestigationReleaseMapper, TInvestigationRelease> implements ITInvestigationReleaseService {

    @Resource
    private TDataReportMapper tDataReportMapper;

    @Override
    public void updateStatus(TInvestigationRelease release) {
        this.baseMapper.updateStatus(release);
    }

    @Override
    public Integer chkReport(String releaseId) {
        return tDataReportMapper.chkReport(releaseId);
    }

    @Override
    public boolean chkDate(TInvestigationRelease release) {
        return this.baseMapper.chkDate(release) > 0;
    }
}
